import axios from '@/libs/request/axios'
// 获取渠道上线流程 多条件
export const getChannelOnlineWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/channelOnlineWorkFlow/getByCondition',
        data: params,
        method: 'post'
    })
}

//提交渠道上线审批
export const approveChannelWorkFlow = (params) => {
    return axios.request({
        url: '/channel/channelOnlineWorkFlow/approveChannelWorkFlow',
        data: params,
        method: 'post'
    })
}

// 获取普通车商审批信息 多条件
export const getCommonCarDealerWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/carDealerWorkFlow/getCommonCarDealerInfoByCondition',
        data: params,
        method: 'post'
    })
}

// 获取直营车商审批信息 多条件
export const getDirectCarDealerWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/carDealerWorkFlow/getDirectCarDealerWorkFlowDataByCondition',
        data: params,
        method: 'post'
    })
}

// 获取收款账号审批信息 多条件
export const getAccountWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/accountWorkFlow/getAccountWorkFlowDataByCondition',
        data: params,
        method: 'post'
    })
}

//提交普通车商上线审批
export const approveCommonCarDealerWorkFlow = (params) => {
    return axios.request({
        url: '/channel/carDealerWorkFlow/approveCommonCarDealerWorkFlow',
        data: params,
        method: 'post'
    })
}

//提交直营车商上线审批
export const approveDirectCarDealerWorkFlow = (params) => {
    return axios.request({
        url: '/channel/carDealerWorkFlow/approveDirectCarDealerWorkFlow',
        data: params,
        method: 'post'
    })
}

//提交收款账号审批
export const submitAccountToWorkflow = (params) => {
    return axios.request({
        url: '/channel/accountWorkFlow/submitAccountToWorkflow',
        data: params,
        method: 'post'
    })
}

//收款账号审批提交
export const approveAccountWorkFlow = (params) => {
    return axios.request({
        url: '/channel/accountWorkFlow/approveAccountWorkFlow',
        data: params,
        method: 'post'
    })
}
//审批记录
export const getRecordDetails = (params) => {
    return axios.request({
        url: '/channel/approvalSchedule/getApprovalSchedule',
        data: params,
        method: 'post'
    })
}

// 获取挂靠公司商审批信息 多条件
export const getAffiliationWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/affiliationWorkFlow/getAffiliationWorkFlowData',
        data: params,
        method: 'post'
    })
}

// 获取渠道额度审批信息 多条件
export const getQuotaWorkFlowData = (params) => {
    return axios.request({
        url: '/channel/channelQuotaWorkFlow/getChannelQuotaTaskByCondition',
        data: params,
        method: 'post'
    })
}

//渠道额度维护审批提交
export const approveChannelQuotaWorkFlow = (params) => {
    return axios.request({
        url: '/channel/channelQuotaWorkFlow/approveChannelQuotaWorkFlow',
        data: params,
        method: 'post'
    })
}


